package com.deyuanyun.pic.pig.controller.vo;

import com.deyuanyun.pic.common.util.StringUtils;

import java.util.Date;

public class PigTaskVO {
    //任务Id
    private String id;
    //任务编号
    private String code;
    //任务名称
    private String taskName;

    private Date createDate;
    //创建人姓名
    private String createUser;
    //创建人用户名
    private String createUserName;

    private String createRemark;

    private Date updateDate;

    private String updateUser;

    private String updateRemark;

    private Short deleted;

    private Short version;

    private String orgBizPath;

    private String pipeLineId;
    //管道名称
    private String lineName;
    //起点位置Id
    private String fromPipeValveroomId;
    //终点位置Id
    private String toPipeValveroomId;
    //起点位置绝对距离
    private Double fromMileage;
    //终点位置绝对距离
    private Double toMileage;
    //发球点Id
    private String fromPigId;
    //收球点Id
    private String toPigId;
    //发球点名称
    private String fromPigName;
    //收球点名称
    private String toPigName;
    //状态：1未发布 2已发布3进行中4已完成
    private Short staus;
    //清管类型Id
    private String pagType;
    //清管类型名称
    private String pagTypeName;
    //清管工具
    private String pagTool;
    //检测器类型
    private String detectorType;
    //清管器类型(编辑框)
    private String pigType;
    //判断清管工具是下拉还是编辑框
    private boolean isDropDown;
    //计划清管时间
    private Date planPagDateTime;
    //实际清管时间
    private Date pagDateTime;
    //收发球是否易位(0--否 1--是)
    private String isAdverseCurrent;
    //发球时间
    private Date sendBallsTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateUser() {
        return StringUtils.isNotNullEmpty(createUser) ? createUser : createUserName;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCreateRemark() {
        return createRemark;
    }

    public void setCreateRemark(String createRemark) {
        this.createRemark = createRemark == null ? null : createRemark.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    public String getUpdateRemark() {
        return updateRemark;
    }

    public void setUpdateRemark(String updateRemark) {
        this.updateRemark = updateRemark == null ? null : updateRemark.trim();
    }

    public Short getDeleted() {
        return deleted;
    }

    public void setDeleted(Short deleted) {
        this.deleted = deleted;
    }

    public Short getVersion() {
        return version;
    }

    public void setVersion(Short version) {
        this.version = version;
    }

    public String getPipeLineId() {
        return pipeLineId;
    }

    public void setPipeLineId(String pipeLineId) {
        this.pipeLineId = pipeLineId == null ? null : pipeLineId.trim();
    }

    public String getFromPipeValveroomId() {
        return fromPipeValveroomId;
    }

    public void setFromPipeValveroomId(String fromPipeValveroomId) {
        this.fromPipeValveroomId = fromPipeValveroomId;
    }

    public String getToPipeValveroomId() {
        return toPipeValveroomId;
    }

    public void setToPipeValveroomId(String toPipeValveroomId) {
        this.toPipeValveroomId = toPipeValveroomId;
    }

    public String getFromPigId() {
        return fromPigId;
    }

    public void setFromPigId(String fromPigId) {
        this.fromPigId = fromPigId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getOrgBizPath() {
        return orgBizPath;
    }

    public void setOrgBizPath(String orgBizPath) {
        this.orgBizPath = orgBizPath == null ? null : orgBizPath.trim();
    }

    public Short getStaus() {
        return staus;
    }

    public void setStaus(Short staus) {
        this.staus = staus;
    }

    public String getPagType() {
        return pagType;
    }

    public void setPagType(String pagType) {
        this.pagType = pagType;
    }

    public String getDetectorType() {
		return detectorType;
	}

	public void setDetectorType(String detectorType) {
		this.detectorType = detectorType;
	}

	public String getPigType() {
		return pigType;
	}

	public void setPigType(String pigType) {
		this.pigType = pigType;
	}

	public Date getPlanPagDateTime() {
		return planPagDateTime;
	}

	public void setPlanPagDateTime(Date planPagDateTime) {
		this.planPagDateTime = planPagDateTime;
	}

	public Date getPagDateTime() {
		return pagDateTime;
	}

	public void setPagDateTime(Date pagDateTime) {
		this.pagDateTime = pagDateTime;
	}

    public String getIsAdverseCurrent() {
        return isAdverseCurrent;
    }

    public void setIsAdverseCurrent(String isAdverseCurrent) {
        this.isAdverseCurrent = isAdverseCurrent;
    }

    public String getToPigId() {
        return toPigId;
    }

    public void setToPigId(String toPigId) {
        this.toPigId = toPigId;
    }

    public String getPagTool() {
        if(pagTool == null){
            pagTool = StringUtils.isNotNullEmpty(pigType)?pigType:detectorType;
        }
        return pagTool;
    }

    public void setPagTool(String pagTool) {
        this.pagTool = pagTool;
    }

    public boolean getIsDropDown() {
        isDropDown = StringUtils.isNotNullEmpty(detectorType)?true:false;
        return isDropDown;
    }

    public void setIsDropDown(boolean isDropDown) {
        isDropDown = isDropDown;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public String getFromPigName() {
        return fromPigName;
    }

    public void setFromPigName(String fromPigName) {
        this.fromPigName = fromPigName;
    }

    public String getToPigName() {
        return toPigName;
    }

    public void setToPigName(String toPigName) {
        this.toPigName = toPigName;
    }

    public String getPagTypeName() {
        return pagTypeName;
    }

    public void setPagTypeName(String pagTypeName) {
        this.pagTypeName = pagTypeName;
    }

    public Date getSendBallsTime() {
        return sendBallsTime;
    }

    public void setSendBallsTime(Date sendBallsTime) {
        this.sendBallsTime = sendBallsTime;
    }

    public Double getFromMileage() {
        return fromMileage;
    }

    public void setFromMileage(Double fromMileage) {
        this.fromMileage = fromMileage;
    }

    public Double getToMileage() {
        return toMileage;
    }

    public void setToMileage(Double toMileage) {
        this.toMileage = toMileage;
    }
}